package com.liukai.exam.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生的所有考试、试卷|（做了或者没做或者做了一部分）
 * </p>
 *
 * @author liu kai
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("STUDENT_EXAM")
@ApiModel(value = "StudentExam对象", description = "学生的所有考试、试卷|（做了或者没做或者做了一部分）")
public class StudentExam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学号")
    @TableId(value = "STUDENT_ID", type = IdType.ID_WORKER)
    private Long studentId;

    @ApiModelProperty(value = "班级编号")
    @TableField("CLASS_ID")
    private Integer classId;

    @ApiModelProperty(value = "试卷编号")
    @TableField("EXAM_ID")
    private Long examId;

    @ApiModelProperty(value = "教师账号")
    @TableField("TEACHER_ID")
    private Long teacherId;

    @ApiModelProperty(value = "试卷类型（已完成1，未完成2，正在完成3）")
    @TableField("EXAM_TYPE")
    private Integer examType;

    @ApiModelProperty(value = "成绩")
    @TableField("END_SCORE")
    private Double endScore;


}
